/**************************************************
Class Name: Main
Author's Name:John Lawniczak
Date: 04-21-2010
Description of the class: This is the main class 
	that starts the program off
***************************************/

public class Main {

	/**************************************************
	Method Name:main
	Input to the method: String[] from command line
	Output(Return value): none
	Brief description of the task: this creates the data 
		base initially and the user interface to start 
		the program off
	Author: John Lawniczak
	**************************************************/
	public static void main(String[] args) {
		Database data;
		try {
			if(args.length!=1){
				throw new java.security.InvalidParameterException("Too many arguments");
			}
			//make new data base starting with file from the first string in the command line argument
			data = new Database(args[0]);
			UserInterface UI = new UserInterface(data);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
